package com.exiassassin.librairies.game;

import java.util.Vector;

public abstract class Game {

	protected Vector<Player> alivePlayersList;
	protected Vector<Player> deadPlayersList;
	protected boolean firstConnection;
	
	public Vector<Player> getAlivePlayersList() {
		return alivePlayersList;
	}
	public void setAlivePlayersList(Vector<Player> alivePlayersList) {
		this.alivePlayersList = alivePlayersList;
	}
	public Vector<Player> getDeadPlayersList() {
		return deadPlayersList;
	}
	public void setDeadPlayersList(Vector<Player> deadPlayersList) {
		this.deadPlayersList = deadPlayersList;
	}
	public boolean isFirstConnection() {
		return firstConnection;
	}
	public void setFirstConnection(boolean firstConnection) {
		this.firstConnection = firstConnection;
	}
	
	// Connection to a game 
	public abstract String connection(String player);
	public abstract boolean isAlive(String player);
	public abstract Player gameWin();
	
	public Game() {
	}
	public Game(Vector<Player> alivePlayersList,
			Vector<Player> deadPlayersList, boolean firstConnection) {
		this.alivePlayersList = alivePlayersList;
		this.deadPlayersList = deadPlayersList;
		this.firstConnection = firstConnection;
	}
	
	
}
